import superagent from 'superagent' 
class Crowller {
  private _url: string;
  private rowHtml = '';
  constructor(url:string){
    this._url = url;
    this.getRawHtml();
  };
  async getRawHtml(){
    const result = await superagent.get(this._url)
    this.rowHtml = result.text
  console.log(this.rowHtml);
  }
  get url(){
    return this._url
  }
  set url(url){
    this._url = url
  }

}

const r1 = new Crowller('http://dy-public.oss-cn-shenzhen.aliyuncs.com/interviewTestData/1.txt')
const r2 = new Crowller('http://dy-public.oss-cn-shenzhen.aliyuncs.com/interviewTestData/2.txt')
const r3 = new Crowller('http://dy-public.oss-cn-shenzhen.aliyuncs.com/interviewTestData/3.txt')
const r4 = new Crowller('http://dy-public.oss-cn-shenzhen.aliyuncs.com/interviewTestData/4.txt')
const r5 = new Crowller('http://dy-public.oss-cn-shenzhen.aliyuncs.com/interviewTestData/5.txt')
const r6 = new Crowller('http://dy-public.oss-cn-shenzhen.aliyuncs.com/interviewTestData/6.txt')
const r7 = new Crowller('http://dy-public.oss-cn-shenzhen.aliyuncs.com/interviewTestData/7.txt')
const r8 = new Crowller('http://dy-public.oss-cn-shenzhen.aliyuncs.com/interviewTestData/8.txt')
const r9 = new Crowller('http://dy-public.oss-cn-shenzhen.aliyuncs.com/interviewTestData/9.txt')
const r10 = new Crowller('http://dy-public.oss-cn-shenzhen.aliyuncs.com/interviewTestData/10.txt')
